package com.g.localmsg.starter.model;

public enum TaskState {

    PENDING("PENDING", "待处理"),
    PROCESSING("PROCESSING", "处理中"),
    SUCCESS("SUCCESS", "处理成功"),
    FAILURE("FAILURE", "处理失败"),
    CANCELED("CANCELED", "已取消");

    private final String code;
    private final String desc;

    TaskState(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    public String getCode() {
        return code;
    }
}
